# $Id$
# Maintainer: AndyRTR <andyrtr@archlinux.org>

pkgname=libfreehand
pkgver=0.1.2
pkgrel=1
pkgdesc="a library for import of Aldus/Macromedia/Adobe FreeHand documents"
arch=('x86_64')
url="https://wiki.documentfoundation.org/DLP/Libraries/libfreehand"
license=('MPL2')
depends=('librevenge' 'lcms2')
makedepends=('boost' 'cppunit' 'gperf' 'doxygen')
source=("https://dev-www.libreoffice.org/src/libfreehand/$pkgname-$pkgver.tar.xz")
sha256sums=('0e422d1564a6dbf22a9af598535425271e583514c0f7ba7d9091676420de34ac')

build() {
	cd "$pkgname-$pkgver"
	./configure --prefix=/usr
	make
}

check() {
	cd "$pkgname-$pkgver"
	make check
}

package() {
	cd "$pkgname-$pkgver"
	make DESTDIR="$pkgdir/" install
}
